<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('manage/masterTotal')}">站长申户、下户数量统计列表</a></li>
		</ul>
        <form class="well form-inline margin-top-20" name="time" method="post" action="">
            <!-- <input type="text" class="form-control" name="domainname" style="width: 180px;" value="{:input('request.domainname/s','')}" placeholder="域名"> -->
            开始时间
            <input class="form-control js-bootstrap-date" type="text" name="star_time"
                                   value="">
            结束时间
            <input class="form-control js-bootstrap-date" type="text" name="end_time"
                                   value="">
<!--             <input type="submit" class="btn btn-primary" value="导出表格" />
            <input type="submit" class="btn btn-primary" value="导出表格" /> -->
            <!-- <a class="btn btn-danger" href="{:url('manage/domainList')}">清空</a> -->
            <button onclick="listshow()" class="btn btn-danger js-ajax-submit">查询</button>
            <button onclick="excelout()" class="btn btn-info js-ajax-submit">导出</button>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>部门</th>
					<th>站长</th>
					<th>提交站数</th>
					<th>申户数</th>
					<th>下户站数</th>
					<th>下户数</th>
					<th>成功率</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="outAll" item="vo" key="k" >
				<tr>
					<td>{$vo.department}</td>
					<td>{$vo.master}</td>
					<td>{$vo.total_apply_domain_num }</td>
					<td>{$vo.total_apply_num }</td>
					<td>{$vo.total_down_domain_num}</td>
					<td>{$vo.total_down_num}</td>
					<td>{$vo.success_rate}</td>
				</tr>
				</foreach>
			</tbody>
		</table>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
	<script>
		//列表
	    function listshow(){
	        document.time.action="{:url('omg/groupCount')}";
	        document.time.submit();
	    }
	    //导出
	    function excelout() {
	        document.time.action = "{:url('omg/groupCountOut')}";
	        document.time.submit();
	    }
	</script>
</body>
</html>
